package com.mao.springbootquartzdemo.config;

import com.mao.springbootquartzdemo.service.QuartzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Configuration;

/**
 * @author Mr.Mao
 * @create 2023-02-22 20:20
 */
//@Configuration
public class ApplicationConfig {

//    private QuartzService quartzService;
//
//    @Autowired
//    public ApplicationConfig(QuartzService quartzService) {
//        this.quartzService = quartzService;
//    }
//
//    @Override
//    public void run(ApplicationArguments args) throws Exception {
//        quartzService.addScheduler("小猪佩奇", "动物组", "0/5 * * * * ?");
//        quartzService.addScheduler("阿童木", "机器人组", "0/5 * * * * ?");
//
//
//    }
}
